package com.zhuhjay.controller;

import com.zhuhjay.model.domain.Server;
import com.zhuhjay.utils.result.Result;
import com.zhuhjay.utils.result.ResultBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统信息控制器
 * @author ZhuHJay
 * @date 2023/2/12 21:39
 */
@Api(tags = "系统监视器")
@RestController
@RequestMapping("/monitor")
public class SystemMonitorController {

    @ApiOperation("系统信息监控")
    @GetMapping("info")
    public Result system() {
        return ResultBean.ok().data(new Server());
    }

}
